package com.thinkgem.jeesite.modules.sys.service;

import com.thinkgem.jeesite.modules.sys.dao.TbProductMapper;
import com.thinkgem.jeesite.modules.sys.entity.TbProduct;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * Created by loutong on 2016/11/5.
 */
@Service
public class TbProductService {

    @Autowired
    private TbProductMapper tbProductMapper;

    @Transactional(readOnly = true)
    public TbProduct selectByPrimaryKey(Integer id){
        return tbProductMapper.selectByPrimaryKey(id).get(0);
    }

}
